package cn.enjoyedu.nio.test01;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;

public class test0000 {
    public static void main(String[] args) {
        List<User> list=new ArrayList<>();
        list.add(new User("张三",19));
        list.add(new User("李四",14));
        list.add(new User("赵六",10));
        list.add(new User("王五",11));
        Stream<User> stream = list.stream();
        list.forEach((sdsd)->{
            Integer age = sdsd.age;
            String name = sdsd.name;
            System.out.println(name+age);

        });
    }
}
